package com.atguigu.springcloud.entities;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author: 19shusheng.com
 * @Description:
 * @Date: Created in 21:32 2020/10/19
 * @Modified By:
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CommonResult<T> {
    private Integer code;
    private String message;
    private T data;

    /**
     *
     * @Description: 通用实体串
     *
     * @auther: madonghui
     * @date: 21:35 2020/10/19
     * @param: [code, message]
     * @return:
     *
     */
    public CommonResult(Integer code, String message){
        this(code,message,null);
    }
}
